import request from '@/utils/request'

// 查询历史视频列表
export function listVideo(query) {
  return request({
    url: '/slope/video/list',
    method: 'get',
    params: query
  })
}

// 查询历史视频详细
export function getVideo(historyVideoId) {
  return request({
    url: '/slope/video/getInfo/' + historyVideoId,
    method: 'get'
  })
}

// 新增历史视频
export function addVideo(data) {
  return request({
    url: '/slope/video/add',
    method: 'post',
    data: data
  })
}

// 修改历史视频
export function updateVideo(data) {
  return request({
    url: '/slope/video/edit',
    method: 'post',
    data: data
  })
}

// 删除历史视频
export function delVideo(historyVideoId) {
  return request({
    url: '/slope/video/remove/' + historyVideoId,
    method: 'post'
  })
}

// 导出历史视频
export function exportVideo(query) {
  return request({
    url: '/slope/video/export',
    method: 'get',
    params: query
  })
}